// 放置所有需要获取的数据

const getters = {
  // 获取token
  token: (state:any) => state.users.token,
  // 获取动态路由
  asyncRoutes: (state:any) => state.users.asyncRoutes,
  // 用户身份保存数组。帮助用户判断是否已经添加过动态路由了
  roles: (state:any) => state.users.roles,
  userInfo: (state:any) => state.users.userInfo
}

export { getters }
